package com.itheima.classloader;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class ClassloaderDemo {
    public static void main(String[] args) throws IOException {
        ClassLoader scl = ClassLoader.getSystemClassLoader();
        InputStream resource = scl.getResourceAsStream("prop.properties");
        Properties prop = new Properties();
        prop.load(resource);
        System.out.println(prop);
        resource.close();
    }
}
